<?php

return array(
	"prepare" => '
class class_tt {
	public $is_class_tt = true;
	public function mt() {
		return 123;
	}
}
$obj = new class_tt();',
	"php" => 5,
	"name" => "Определение класса объекта",
	"tests" => array(
		"instanceof" => array(
			"code" => 'if($obj instanceof class_tt) {}',
			"i" => 1000,
			"desc" => "instanceof",
		),
		"get_class" => array(
			"code" => 'if(get_class($obj) === "class_tt") {}',
			"i" => 1000,
			"desc" => "get_class()",
		),
		"isset" => array(
			"code" => 'if(isset($obj->is_class_tt)) {}',
			"i" => 1000,
			"desc" => "isset спецефичного свойства",
		),
		"method_exists" => array(
			"code" => 'if(method_exists($obj, "mt")) {}',
			"i" => 1000,
			"desc" => "method_exists спецефичного метода",
		)
	)
);

?>
